package com.lin.forum.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Tag(name = "TestController 测试接口")
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
    @Operation(description = "测试传入名字")
    @GetMapping("/linName")
    public String linName(@Parameter(description = "姓名") String name){
        log.info("姓名："+name);
        return "姓名："+name;
    }
}
